package com.ruoyi.coal.modules.coalpile.domain.vo;

import org.springframework.web.multipart.MultipartFile;

public class Upload {
    private MultipartFile file;

    private Integer id;

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.ruoyi.coal.modules.coalpile.domain.vo.Upload))
            return false;
        com.ruoyi.coal.modules.coalpile.domain.vo.Upload other = (com.ruoyi.coal.modules.coalpile.domain.vo.Upload)o;
        if (!other.canEqual(this))
            return false;
        Object this$file = getFile(), other$file = other.getFile();
        if ((this$file == null) ? (other$file != null) : !this$file.equals(other$file))
            return false;
        Object this$id = getId(), other$id = other.getId();
        return !((this$id == null) ? (other$id != null) : !this$id.equals(other$id));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.ruoyi.coal.modules.coalpile.domain.vo.Upload;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $file = getFile();
        result = result * 59 + (($file == null) ? 43 : $file.hashCode());
        Object $id = getId();
        return result * 59 + (($id == null) ? 43 : $id.hashCode());
    }

    public String toString() {
        return "Upload(file=" + getFile() + ", id=" + getId() + ")";
    }

    public MultipartFile getFile() {
        return this.file;
    }

    public Integer getId() {
        return this.id;
    }
}
